﻿@using giaoxuhaison.Models;
@{
    ViewBag.Title = "CategoryGroup";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@*<script src='@Url.Content("~/Scripts/jquery-1.2.3.pack.js")' type="text/javascript"></script>
<script type="text/javascript" src='@Url.Content("~/Scripts/News/thickbox.js")'></script>
<link rel="stylesheet" href="@Url.Content("~/Content/thickbox.css")" type="text/css" media="screen" />*@


@{
    var lstItem = (List<ImagesVideosAll>)ViewData["lstImg"];    
}

<div class="HappyGroupNews">    
    <!--load tin moi -->
    @if (lstItem != null && lstItem.Count != 0)
    {
        //load hinh anh theo chu de
        if (lstItem[0].GroupID == 40)
        {
            <div class="HappyNewsGrpTitle">        
                <b >HÌNH ẢNH SINH HOẠT GIÁO XỨ@*@lstItem[0].groupname.ToUpper()*@</b> @*<a href='@Url.Action("CategoryDetail", "Categories", new { CategoryID = item.CategoryID, GroupID = item.GroupID })'>@item.Subject</a>        *@
            </div>        
            <div class="HappyGrpNews">
                <div style="margin-left:5px;">
                    @foreach (var item in lstItem)
                    {
                        <div class="ImgItem">
                            <div class="IntroImg" align="center">
                                <a href='@Url.Action("ImgDetail", "Categories", new { ImgVideoID = item.ImgVideoID, GroupID = item.GroupID })' ><img src="@Url.Content(@item.IntroImageUrl)" alt="" style="width:260px; height:195px;"/></a>                     
                            </div>
                            <div class="ImgDesc" id="HappyLink" align="center">
                                <a href="@Url.Action("ImgDetail", "Categories", new { ImgVideoID = item.ImgVideoID, GroupID = item.GroupID })" >@item.Subject</a>                     
                            </div>
                        </div>         
                    }                
                </div>
            </div>               
        }
        else
        {
            <div class="HappyNewsGrpTitle">        
                <b >VIDEOS
            </div>        
            <div class="HappyGrpNews">
                <div style="margin-left:5px;">
                    @foreach (var item in lstItem)
                    {
                        <div class="ImgItem">
                            <div class="IntroImg" align="center">
                                @*<a href='@Url.Action("ImgDetail", "Categories", new { ImgVideoID = item.ImgVideoID, GroupID = item.GroupID })' ><img src="@Url.Content(@item.IntroImageUrl)" alt="" style="width:260px; height:195px;"/></a>                     *@
                                <iframe width="260" height="205" src='@Url.Content(item.ImageContentPath)' frameborder="0" allowfullscreen></iframe>
                            </div>
                            <div class="ImgDesc" id="HappyLink" align="center">
                                <a href='@Url.Action("VideoDetail", "Categories", new { VideoID = item.ImgVideoID, GroupID = item.GroupID })'>@item.Subject</a>                     
                            </div>
                        </div>         
                    }                
                </div>
            </div>       
        }
    }
    else
    {
        <div class="NewsGrpTitle">        
            <a href="#">Hình ảnh</a>
        </div>        
        <div class="DetailGrpNews">
            <div id="LinkGroupNews">
                <div class="NewsGrpContent">
                    <span style="padding-left: 5px;color:Red;">Danh mục đang cập nhật. Xin vui lòng quay lại sau!</span>
                </div>
            </div>
        </div>        
    }
</div>

<div class="RightGroupNews">
    <div class="RightGroupTitle">
        @Html.Label("TIN/ BÀI MỚI", new { @class = "lblLeftTitle" })                        
    </div>
    <div class="RightGroupContent">
        <!--Hien thi phan loi Chua moi-->        
        <!--Hien thi tin tuc moi cua group-->
        @Html.Action("IndexRightNews", "News")
        @*@Html.Action("NewRightNews", "News")*@
    </div>  
    <div class="RightGroupTitle">
        @Html.Label("SUY NIỆM LỜI CHÚA", new { @class = "lblLeftTitle" })                        
    </div>
    <div class="RightGroupContent">
        <!--Hien thi phan loi Chua moi-->        
        <!--Hien thi tin tuc moi cua group-->
        <!-- load phan thong bao moi -->
        <!--Hien thi phan loi Chua moi-->
        @Html.Action("NewGodTitle", "GodTitle")
    </div> 
</div>

